#include <iostream>
using namespace std;

template <typename T>
void sort(T array[], int len) {
	T temp;
	for (int i = 0; i < len - 1; i++) {
		for (int j = 0; j < len - 1 - i; j++) {
			if (array[j] > array[j + 1]) {
				temp = array[j];
				array[j] = array[j + 1];
				array[j + 1] = temp;
			}
		}
	}
}

//int main() {
//	int arr[] = { 61, 17, 29, 22, 34, 60, 72, 21, 50, 1, 62 };
//	sort(arr, (int) sizeof(arr) / sizeof(*arr));
//
//	double arrf[] = { 17.5, 19.1, 0.6, 1.9, 10.5, 12.4, 3.8, 19.7, 1.5, 25.4, 28.6, 4.4, 23.8, 5.4 };
//	sort(arrf, (int) sizeof(arrf) / sizeof(*arrf));
//	return 0;
//}